package com.settlement.system.model.entity.common;

import com.settlement.system.common.enums.ShopSaleTypeEnum;
import org.apache.commons.lang3.StringUtils;

import java.io.Serializable;
import java.util.Date;

/**
 * 请写出类的用途 
 * @author x1
 * @date  2019-03-11 10:44:59
 * @version 1.0.0
 * 
 * All Rights Reserved. 
 * 
 * The software for the testdevelopment, without the 
 * company's written consent, and any other individuals and 
 * organizations shall not be used, Copying, Modify or distribute 
 * the software.
 * 
 */
public class InternetShopConfig extends BaseModel implements Serializable {
    /**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	/**
     * 公司编码
     */
    private String companyNo;

    /**
     * 公司名称
     */
    private String companyName;

    /**
     * 店铺编码
     */
    private String shopNo;

    /**
     * 店铺名称
     */
    private String shopName;

    /**
     * 业务类型(0 鞋非唯 1体非唯 2新业务非唯,3小程序4北京崇德11体育唯品12新业务唯品)
     */
    private Byte shopSaleType;
    
    /**
     * 是否为o2o虚店（用于门店结算单生成），0否；1是
     */
    private Byte isO2o = 0;
    
    private String isO2oStr;
    
    private String shopSaleTypeStr;
    
    /**
     * 是否拆单 0:不拆单,1:拆弹
     */
    private Byte split;

	/** 注销状态 */
	private Integer status;

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	/**
     * 
     * {@linkplain #isO2o}
     *
     * @return the value of internet_shop_config.is_o2o
     */
    public Byte getIsO2o() {
		return isO2o;
	}

    /**
     * 
     * {@linkplain #isO2o}
     * @param isO2o the value for internet_shop_config.is_o2o
     */
	public void setIsO2o(Byte isO2o) {
		this.isO2o = isO2o;
	}

	/**
     * 
     * {@linkplain #companyNo}
     *
     * @return the value of internet_shop_config.company_no
     */
    public String getCompanyNo() {
        return companyNo;
    }

    /**
     * 
     * {@linkplain #companyNo}
     * @param companyNo the value for internet_shop_config.company_no
     */
    public void setCompanyNo(String companyNo) {
        this.companyNo = companyNo;
    }

    /**
     * 
     * {@linkplain #companyName}
     *
     * @return the value of internet_shop_config.company_name
     */
    public String getCompanyName() {
        return companyName;
    }

    /**
     * 
     * {@linkplain #companyName}
     * @param companyName the value for internet_shop_config.company_name
     */
    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    /**
     * 
     * {@linkplain #shopNo}
     *
     * @return the value of internet_shop_config.shop_no
     */
    public String getShopNo() {
        return shopNo;
    }

    /**
     * 
     * {@linkplain #shopNo}
     * @param shopNo the value for internet_shop_config.shop_no
     */
    public void setShopNo(String shopNo) {
        this.shopNo = shopNo;
    }

    /**
     * 
     * {@linkplain #shopName}
     *
     * @return the value of internet_shop_config.shop_name
     */
    public String getShopName() {
        return shopName;
    }

    /**
     * 
     * {@linkplain #shopName}
     * @param shopName the value for internet_shop_config.shop_name
     */
    public void setShopName(String shopName) {
        this.shopName = shopName;
    }

    /**
     * 
     * {@linkplain #shopSaleType}
     *
     * @return the value of internet_shop_config.shop_sale_type
     */
    public Byte getShopSaleType() {
        return shopSaleType;
    }

    /**
     * 
     * {@linkplain #shopSaleType}
     * @param shopSaleType the value for internet_shop_config.shop_sale_type
     */
    public void setShopSaleType(Byte shopSaleType) {
        this.shopSaleType = shopSaleType;
    }

	public String getIsO2oStr() {
		return isO2oStr;
	}

	public void setIsO2oStr(String isO2oStr) {
    	final String yes = "是";
		if (StringUtils.isNotBlank(isO2oStr)) 
		{
			Byte i = 0 ;
			if(isO2oStr.equals(yes))
			{
				i = (byte) 1;
			}
			
			this.isO2o = i;
	    }
		this.isO2oStr = isO2oStr;
	}

	public String getShopSaleTypeStr() {
		return shopSaleTypeStr;
	}

	public void setShopSaleTypeStr(String shopSaleTypeStr) {
		if (StringUtils.isNotBlank(shopSaleTypeStr)) 
		{
			Byte i = 0 ;
			if(shopSaleTypeStr.equals(ShopSaleTypeEnum.X_FW.getName()))
			{
				i = (byte) 0;
			}
			else if(shopSaleTypeStr.equals(ShopSaleTypeEnum.T_FW.getName()))
			{
				i = (byte) 1;
			}
			else if(shopSaleTypeStr.equals(ShopSaleTypeEnum.XYW_FW.getName()))
			{
				i = (byte) 2;
			}
			else if(shopSaleTypeStr.equals(ShopSaleTypeEnum.TY_XCX.getName()))
			{
				i = (byte) 3;
			}
			else if(shopSaleTypeStr.equals(ShopSaleTypeEnum.BJCD.getName()))
			{
				i = (byte) 4;
			}
			else if(shopSaleTypeStr.equals(ShopSaleTypeEnum.YZ_FWP.getName()))
			{
				i = (byte) 5;
			}
			else if(shopSaleTypeStr.equals(ShopSaleTypeEnum.TY_WP.getName()))
			{
				i = (byte) 11;
			}
			else if(shopSaleTypeStr.equals(ShopSaleTypeEnum.XYW_WP.getName()))
			{
				i = (byte) 12;
			}
			else if(shopSaleTypeStr.equals(ShopSaleTypeEnum.X_WP.getName()))
			{
				i = (byte) 13;
			}
			else
			{
				i = (byte) 20;
			}
			this.shopSaleType = i;
	    }
		this.shopSaleTypeStr = shopSaleTypeStr;
	}

	public Byte getSplit() {
		return split;
	}

	public void setSplit(Byte split) {
		this.split = split;
	}



	
    
}